<h1>Editing course</h1>

<%= error_messages_for :course %>

<% form_for([:admin, @course]) do |f| %>
  <p>
    <b>Title</b><br />
    <%= f.text_field :title %>
  </p>

  <p>
    <b>Description</b><br />
    <%= f.text_area :description %>
  </p>

  <p>
    <b>Point</b><br />
    <%= f.text_field :point %>
  </p>

  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', [:admin, @course] %> |
<%= link_to 'Back', admin_courses_path %>
